<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
 <head>
  <meta http-equiv="content-type" content="text/html; charset=UTF-8">
  <title>This function returns the eigenvalues for a given square matrix</title>

 </head>
 <body><div class="manualnavbar" style="text-align: center;">
 <div class="prev" style="text-align: left; float: left;"><a href="class.lapack.html">Lapack</a></div>
 <div class="next" style="text-align: right; float: right;"><a href="lapack.identity.html">Lapack::identity</a></div>
 <div class="up"><a href="class.lapack.html">Lapack</a></div>
 <div class="home"><a href="index.html">PHP Manual</a></div>
</div><hr /><div id="lapack.eigenvalues" class="refentry">
 <div class="refnamediv">
  <h1 class="refname">Lapack::eigenValues</h1>
  <p class="verinfo">(PECL lapack &gt;= 0.1.0)</p><p class="refpurpose"><span class="refname">Lapack::eigenValues</span> &mdash; <span class="dc-title">This function returns the eigenvalues for a given square matrix</span></p>

 </div>

 <div class="refsect1 description" id="refsect1-lapack.eigenvalues-description">
  <h3 class="title">说明</h3>
  <div class="methodsynopsis dc-description">
   <span class="modifier">public</span> <span class="modifier">static</span> <span class="type">array</span> <span class="methodname"><strong>Lapack::eigenValues</strong></span>
    ( <span class="methodparam"><span class="type">array</span> <code class="parameter">$a</code></span>
   [, <span class="methodparam"><span class="type">array</span> <code class="parameter">$left</code></span>
   [, <span class="methodparam"><span class="type">array</span> <code class="parameter">$right</code></span>
  ]] )</div>

  <p class="para rdfs-comment">
    Calculate the eigenvalues for a square matrix, and optionally calculate the left and right eigenvectors. 
  </p>

 </div>


 <div class="refsect1 parameters" id="refsect1-lapack.eigenvalues-parameters">
  <h3 class="title">参数</h3>
  <dl>

   
    <dt>
<em><code class="parameter">a</code></em></dt>

    <dd>

     <p class="para">
        The matrix to calculate the eigenvalues for. 
     </p>
    </dd>

   
   
    <dt>
<em><code class="parameter">left</code></em></dt>

    <dd>

     <p class="para">
      Optional parameter - if an array is passed here, it will be filled with the left eigenvectors
     </p>
    </dd>

   
   
    <dt>
<em><code class="parameter">right</code></em></dt>

    <dd>

     <p class="para">
      Optional parameter - if an array is passed here, it will be filled with the right eigenvectors
     </p>
    </dd>

   
  </dl>

 </div>


 <div class="refsect1 returnvalues" id="refsect1-lapack.eigenvalues-returnvalues">
  <h3 class="title">返回值</h3>
  <p class="para">
    Returns an array of arrays representing the eigenvalues for the array. 
  </p>
 </div>

 
 <div class="refsect1 examples" id="refsect1-lapack.eigenvalues-examples">
   <h3 class="title">范例</h3>
   <p class="para">
    <div class="example" id="example-3350">
     <p><strong>Example #1 Using <span class="function"><strong>Lapack::eigenValues()</strong></span>:</strong></p>
     <div class="example-contents">
 <div class="phpcode"><code><span style="color: #000000">
<span style="color: #0000BB">&lt;?php<br /><br />&nbsp;$a&nbsp;</span><span style="color: #007700">=&nbsp;array(<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;array(-</span><span style="color: #0000BB">1.01</span><span style="color: #007700">,&nbsp;&nbsp;&nbsp;</span><span style="color: #0000BB">0.86</span><span style="color: #007700">,&nbsp;&nbsp;-</span><span style="color: #0000BB">4.60</span><span style="color: #007700">,&nbsp;&nbsp;</span><span style="color: #0000BB">3.31</span><span style="color: #007700">,&nbsp;&nbsp;-</span><span style="color: #0000BB">4.81&nbsp;&nbsp;</span><span style="color: #007700">),<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;array(&nbsp;</span><span style="color: #0000BB">3.98</span><span style="color: #007700">,&nbsp;&nbsp;&nbsp;</span><span style="color: #0000BB">0.53</span><span style="color: #007700">,&nbsp;&nbsp;-</span><span style="color: #0000BB">7.04</span><span style="color: #007700">,&nbsp;&nbsp;</span><span style="color: #0000BB">5.29</span><span style="color: #007700">,&nbsp;&nbsp;&nbsp;</span><span style="color: #0000BB">3.55&nbsp;&nbsp;</span><span style="color: #007700">),<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;array(&nbsp;</span><span style="color: #0000BB">3.30</span><span style="color: #007700">,&nbsp;&nbsp;&nbsp;</span><span style="color: #0000BB">8.26</span><span style="color: #007700">,&nbsp;&nbsp;-</span><span style="color: #0000BB">3.89</span><span style="color: #007700">,&nbsp;&nbsp;</span><span style="color: #0000BB">8.20</span><span style="color: #007700">,&nbsp;&nbsp;-</span><span style="color: #0000BB">1.51&nbsp;&nbsp;</span><span style="color: #007700">),<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;array(&nbsp;</span><span style="color: #0000BB">4.43</span><span style="color: #007700">,&nbsp;&nbsp;&nbsp;</span><span style="color: #0000BB">4.96</span><span style="color: #007700">,&nbsp;&nbsp;-</span><span style="color: #0000BB">7.66</span><span style="color: #007700">,&nbsp;-</span><span style="color: #0000BB">7.33</span><span style="color: #007700">,&nbsp;&nbsp;&nbsp;</span><span style="color: #0000BB">6.18&nbsp;&nbsp;</span><span style="color: #007700">),<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;array(&nbsp;</span><span style="color: #0000BB">7.31</span><span style="color: #007700">,&nbsp;&nbsp;-</span><span style="color: #0000BB">6.43</span><span style="color: #007700">,&nbsp;&nbsp;-</span><span style="color: #0000BB">6.16</span><span style="color: #007700">,&nbsp;&nbsp;</span><span style="color: #0000BB">2.47</span><span style="color: #007700">,&nbsp;&nbsp;&nbsp;</span><span style="color: #0000BB">5.58&nbsp;&nbsp;</span><span style="color: #007700">),<br />&nbsp;);<br /><br />&nbsp;</span><span style="color: #0000BB">$result&nbsp;</span><span style="color: #007700">=&nbsp;</span><span style="color: #0000BB">Lapack</span><span style="color: #007700">::</span><span style="color: #0000BB">eigenValues</span><span style="color: #007700">(</span><span style="color: #0000BB">$a</span><span style="color: #007700">);<br /><br />&nbsp;</span><span style="color: #0000BB">?&gt;</span>
</span>
</code></div>
     </div>

    </div>
   </p>
  </div>



</div><hr /><div class="manualnavbar" style="text-align: center;">
 <div class="prev" style="text-align: left; float: left;"><a href="class.lapack.html">Lapack</a></div>
 <div class="next" style="text-align: right; float: right;"><a href="lapack.identity.html">Lapack::identity</a></div>
 <div class="up"><a href="class.lapack.html">Lapack</a></div>
 <div class="home"><a href="index.html">PHP Manual</a></div>
</div></body></html>
